package com.lzy.managersystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzy.managersystem.pojo.User;

import java.util.List;

/**
* @author qq619
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2022-06-07 17:41:26
*/
public interface UserService extends IService<User> {

    //查询所有用户
    List<User> getAllUser();

    //插入用户信息
    int insterUser(User user);

    //根据id删除用户信息
    int deleteUser(Integer id);

    //更新用户
    int updateUser(User user);

    int deleteBatchUser(List<Integer> ids);


    //查找role为teacher的
    List<User> getTeacher(String role);


}
